jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Wed, 19 Aug 2026 17:55:58 +0000 (19:55 +0200)
committerMoritz Muehlenhoff <jmm@debian.org>
Wed, 19 Aug 2026 17:55:58 +0000 (19:55 +0200)
commit6d8e04464bc2fcf9fffa3c59c58bce9cb5546f87
tree4805a695858560ac443258660431e43c7385ad49
parent1fb912949c291e0a80c40f4b3eb53046dc6ed454
jlink: Hash of module differs to expected hash recorded in java.base

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944738
Forwarded: not-needed

The cause is the use of dh_strip_nondeterminism late in the build
process.  This reorganises the jmod files, which in turn changes their
SHA256 checksums.  This would not be a problem, except that the
checksums are saved in java.base.jmod *before* the use of
dh_strip_nondeterminism.  Performing this stripping immediately after
each jmod file is created results in the checksums being consistent
throughout.

Gbp-Pq: Name reproducible-build-jmod.diff
make/CreateJmods.gmk